<?php
class AdminModule{
	private $adminId;
	private $adminName;
	private $adminPassword;
	private $adminPower;
	
	public function getAdmin(){
		
	}
	
	public function setAdmin(){
		
	}
	
	public function isAdmin($adminname,$password){
		$db = DbUtils::getInstance();
		$sql = "select * from `admins` where name = '$adminname' and password = $password";
		$result = $db->query($sql);
		if ($result){
			$result = $result[0]['name'];
		}else {
			$result = FALSE;
		}
		return $result;
	}
	
}